package com.craney.embeddedAsset
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	
	public class EmbedJPG extends Sprite
	{
		[Embed(source="source\\dog.jpg")]
		private var craney:Class;
		
		public function EmbedJPG(ps:Sprite)
		{
//			var diso:DisplayObject = new craney();
			var bmpData:BitmapData = new BitmapData(140, 140);
			bmpData.draw(new craney());
			var bmp:Bitmap = new Bitmap(bmpData);
			bmp.x = 100;
			bmp.y = 100;
			ps.addChild(bmp);			
		}

	}
}